package com.framework;

import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.FlowLayout;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTextArea;

public class DisplayedFrame extends JFrame {

	JPanel pluginViewer;

	public DisplayedFrame(JPanel nodeThree) {
		super();
		this.setLayout(new BorderLayout());
		this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		this.setTitle("Projet POO 2012");
		this.setBackground(Color.WHITE);
		this.setLocationRelativeTo(null);  // Center window

		this.pack();
	}
	
	public void initiatePluginViewer(){
		
		JTextArea textArea = new JTextArea("hello"); 
		textArea.setEditable (false);
		pluginViewer.add (textArea,"Center");
		pluginViewer.setVisible(true);
		
		
	}

}
